import Container from "@/component/Container"
import Page from "@/layout/Page"
import { Button, Modal, Row } from "antd"
import { useEffect, useRef, useState } from "react"
import styled from "styled-components"
const index = () => {
    // Modal.confirm({

    // })
    const click = () => {
        let bool = false;
        Modal.info({
            keyboard: false,
            okText: "1",
            content: (
                <div>
                    <button onClick={() => bool = true}>
                        click
                    </button>
                </div>
            ),
            onOk() {
                if(!bool){
                    click()
                }
            }
        })
    }
    return (
        <Page>
            <Button onClick={click}>
                click
            </Button>
        </Page>
    )
}
export default index